<div class="row toolbar">
  <div class="col-md-6">
    <span class="toolbar-header">
      <%= t :manufacturer_list %>
    </span>
  </div>
  <div class="col-md-6 text-right">
    <ul class="toolbar-nav">
      <li><%= link_to feather_icon('circle-plus'), new_manufacturer_path %></li>
      <li><%= link_to feather_icon('file-add'), appointments_path %></li>
      <li><%= link_to feather_icon('file-add'), new_manufacturer_path %></li>
    </ul>
    <input type="text" placeholder="Search" class="search-box" />
  </div>
</div>

<table class="table table-striped">
  <thead>
    <tr>
      <th><%= t :actions %></th>
      <th><%= t :name %></th>
      <th><%= t :code %></th>
      <th>Website</th>
      <th><%= t :address %></th>
      <th>Email</th>
      <th><%= t :phone %></th>
      <th>Fax</th>
    </tr>
  </thead>

  <tbody>
    <% @manufacturers.each do |manufacturer| %>
      <tr>
        <td><%= link_to simple_icon('note'), edit_manufacturer_path(manufacturer) %>
        <%= link_to feather_icon('trash'), manufacturer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
        <td><%= link_to manufacturer.name, manufacturer %></td>
        <td><%= link_to manufacturer.code, manufacturer %></td>
        <td><%= manufacturer.website %></td>
        <td><%= manufacturer.address %></td>
        <td><%= manufacturer.email %></td>
        <td><%= manufacturer.phone %></td>
        <td><%= manufacturer.fax %></td>
      </tr>
    <% end %>
  </tbody>
</table>

